const Mock = require('mockjs')
const fs = require('fs')
const data = Mock.mock({
	"list|100": [{
		"image|3-6": ['@image(120x80, @color, image)'],
		"id": '@id',
		"title": '@ctitle',
		"price|10-1000": 1,
		"desc": "@cword(10, 30)",
		"messageList|3-10": [{
			"id": '@id',
			"avator": "@image(30x30, @color, image)",
			"nickname": "@cname",
			"content": "@cword(10, 20)",
			"createDateTime": "@datetime"
		}]
	}],
	"banners|5": ["@image(200x120, @color, banner)"],
	"menuList|10": [{ "name": '@ctitle(2,4)', "image": "@image(50x50, @color, menu)" }]
})
fs.writeFileSync('data.json', JSON.stringify(data))